package com.gpframework.module.base.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gpframework.module.base.domain.BaseStoreConfig;
import com.gpframework.module.base.domain.req.BaseStoreConfigReq;
import com.gpframework.module.base.domain.vo.BaseStoreConfigVo;
import com.gpframework.module.common.domain.req.CommonStoreConfigValueReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BaseStoreConfig
 * @Author gpframework
 * @Date 2022-04-06
 * @Version 1.0.0
 * @Description 店铺基础配置（折扣、手续费等）Mapper接口
 */
public interface BaseStoreConfigMapper extends BaseMapper<BaseStoreConfig> {

    /**
     * 列表
     *
     * @param lqw
     * @return
     */
    List<BaseStoreConfigVo> listVo(@Param("ew") QueryWrapper<BaseStoreConfig> lqw);

    /**
     * 对象
     *
     * @param id
     * @return
     */
    BaseStoreConfigVo getVo(@Param("id") Long id);

    /**
     * 获取门店基础配置
     *
     * @param baseStoreConfigReq
     * @return
     */
    List<BaseStoreConfigVo> getList(BaseStoreConfigReq baseStoreConfigReq);

    /**
     * 获取配置
     *
     * @param storeConfigValueReq 枚举：StoreSysConfig
     * @return
     */
    BaseStoreConfigVo getInfo(CommonStoreConfigValueReq storeConfigValueReq);
}
